package com.sxs.entity;

import java.util.Date;

import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;

import java.io.Serializable;

/**
 * 讲师(EduTeacher)表实体类
 *
 * @author makejava
 * @since 2021-08-07 18:59:34
 */
@Data
@SuppressWarnings("serial")
public class EduTeacher extends Model<EduTeacher> {
    //讲师ID
    @TableId(type= IdType.ID_WORKER_STR)
    private String id;
    //讲师姓名
    private String name;
    //讲师简介
    private String intro;
    //讲师资历,一句话说明讲师
    private String career;
    //头衔 1高级讲师 2首席讲师
    private Object level;
    //讲师头像
    private String avatar;
    //排序
    private Object sort;
    //逻辑删除 1（true）已删除， 0（false）未删除
    @TableLogic
    private Object isDeleted;
    //创建时间
    @TableField(fill = FieldFill.INSERT)
    private Date gmtCreate;
    //更新时间
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date gmtModified;

    /**
     * 获取主键值
     *
     * @return 主键值
     */
    @Override
    protected Serializable pkVal() {
        return this.id;
    }
}
